﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using BusinessObjects.BO_GetObjects;
using BussinessObjects;
using BusinessObjects;
using LibraryO2S;
using System.IO;

public partial class controls_admin_LogoBanner : Pages_Base
{
    private DataTable objDT;
    protected void Page_Load(object sender, EventArgs e)
    {
        base.removeHGC(divMessage);
        base.removeHGC(divResult);
        if (!IsPostBack)
        {
            loadData();
        }
    }
    protected void loadData()
    {
        try
        {
            string path = "../upload/xml/slide.xml";
            if (File.Exists(Server.MapPath(path)))
            {
                DataSet objDS = new DataSet();
                objDS.ReadXml(Server.MapPath(path));
                objDT = objDS.Tables[0];
                bindRepeater(rptData, objDT, divMessage);
            }
            else
                divMessage.InnerHtml = O2S_Message.Warning("Cảnh Báo", "Chưa có bản ghi nào.");
        }
        catch (Exception ex)
        {
            throw ex;
        }
    }
}
